package com.ht.service.emp.impl;

import com.ht.bean.emp.Dep;
import com.ht.util.Pager;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ht.dao.emp.WorkdiaryMapper;
import com.ht.bean.emp.Workdiary;
import com.ht.service.emp.WorkdiaryService;

import java.util.List;
import java.util.Map;

/**
 * @author 王金宝
 * @date 2020/6/12 20:30
 * 
 */
@Service
public class WorkdiaryServiceImpl implements WorkdiaryService{

    @Resource
    private WorkdiaryMapper workdiaryMapper;


    @Override
    public int selworkday(Integer empid) {
        return workdiaryMapper.selworkday(empid);
    }

    @Override
    public int selworkcount() {
        return workdiaryMapper.selworkcount();
    }

    @Override
    public List<Workdiary> selectWorkdiary() {
        return workdiaryMapper.selectWorkdiary();
    }

    @Override
    public Dep seldepperson(Integer empid) {
        return workdiaryMapper.seldepperson(empid);
    }

    @Override
    public List<Map> selMyWorkCheck(Pager pager,String checkperson) {
        return workdiaryMapper.selMyWorkCheck(pager,checkperson);
    }

    @Override
    public int selMyWorkCheckRow(String checkperson) {
        return workdiaryMapper.selMyWorkCheckRow(checkperson);
    }

    @Override
    public List<Map> selcheckwork(Pager pager, Integer checkstate, Integer depid) {
        return workdiaryMapper.selcheckwork(pager, checkstate, depid);
    }

    @Override
    public int selcheckworkRow(Integer checkstate, Integer depid) {
        return workdiaryMapper.selcheckworkRow(checkstate, depid);
    }

    @Override
    public List<Map> selcheckwork2(Pager pager, Integer empid, Integer checkstate, Integer deptid) {
        return workdiaryMapper.selcheckwork2(pager, empid, checkstate, deptid);
    }

    @Override
    public int selcheckworkRow2(Integer empid, Integer checkstate, Integer depid) {
        return workdiaryMapper.selcheckworkRow2(empid, checkstate, depid);
    }

    @Override
    public List<Workdiary> allPageWorkdiary(Pager pager, Integer checkstate,String date1,String date2) {
        return workdiaryMapper.allPageWorkdiary(pager,checkstate,date1,date2);
    }

    @Override
    public int allPageWorkdiaryRow(Integer checkstate, String date1, String date2) {
        return workdiaryMapper.allPageWorkdiaryRow(checkstate,date1,date2);
    }

    //我的周报数据
    @Override
    public List<Workdiary> myworkdiary(Pager pager,Integer empid, String date1, String date2) {
        return workdiaryMapper.myworkdiary(pager,empid, date1, date2);
    }

    //我的周报数据行数
    @Override
    public int myworkdiaryRow(Integer empid, String date1, String date2) {
        return workdiaryMapper.myworkdiaryRow(empid, date1, date2);
    }

    @Override
    public List<Workdiary> searchWorkdiary(Integer id) {
        return workdiaryMapper.searchWorkdiary(id);
    }

    @Override
    public int deleteByPrimaryKey(Integer worklogid) {
        return workdiaryMapper.deleteByPrimaryKey(worklogid);
    }

    @Override
    public int insert(Workdiary record) {
        return workdiaryMapper.insert(record);
    }

    @Override
    public int insertSelective(Workdiary record) {
        return workdiaryMapper.insertSelective(record);
    }

    @Override
    public Workdiary selectByPrimaryKey(Integer worklogid) {
        return workdiaryMapper.selectByPrimaryKey(worklogid);
    }

    @Override
    public int updateByPrimaryKeySelective(Workdiary record) {
        return workdiaryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Workdiary record) {
        return workdiaryMapper.updateByPrimaryKey(record);
    }

}
